package com.rsxy.service.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rsxy.service.mapper.RsProductMapper;
import com.rsxy.service.pojo.RsProduct;
import com.rsxy.service.service.RsProductService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class RsProductServiceImpl extends ServiceImpl<RsProductMapper, RsProduct> implements RsProductService {


    @Override
    public RsProduct getProductInfoById(String productId) {
        return this.baseMapper.getProductInfoById(productId);
    }

    @Override
    public List<RsProduct> getSearchList(String productTitle) {
        return this.baseMapper.getSearchList(productTitle);
    }

    @Override
    public List<RsProduct> getProductList(Integer productType) {
        return this.baseMapper.getProductList(productType);
    }

    @Override
    public int updateByProductId(String productId) {
        return this.baseMapper.updateByProductId(productId);
    }

}
